package ooday03;

public class Teacher extends Person{
    double salary;
    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary=salary;
    }
    void sayHi(){
        super.sayHi();
        System.out.println("我的工资是"+salary);
    }
    void teach(){
        System.out.println(name+"正在教学");
    }
}

